  <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">                
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Nouveau bien
                        <small>Control panel</small>
                    </h1>
                    <ol class="breadcrumb">
                        <li><a href="<?=site_url()?>"><i class="fa fa-dashboard"></i> Accueil</a></li>
                        <li >Dossier</li>
                        <li class="active">Biens</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                     <div class="row">

                    
                        <div class="col-lg-4 col-xs-12">
                            <div class="box box-primary">
                            
                            	 <?php if(isset($errors)){?>
                            	
                            	 <div class="box-header">
        <div class="alert alert-danger alert-dismissible" role="alert">
      
  <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  <strong>Attentions!</strong> <ol><?foreach( $errors as $e ):?><li><?=$e?></li><?php endforeach;?></ol>
</div>
</div>
        <?php }?>
                     <form action="" role="form" method="post">
                                <div class="box-body ">
                              
                               <div class="form-group">
                                 		<label>Type de Bien</label>
                                 		<select class="form-control" name="category">
                                 			
                                 			<?php foreach ($category as $c):?>
                                 		
                                 				<option value="<?=$c->id?>"><?=$c->category?></option>
                                 				
                                 			<?php endforeach;?>
                                 		
                                 		</select>		
                                 	</div>
                                 	
                                 	<div class="form-group">
                                 		<label>* Numéro de la rue </label>
                                 		<input class="form-control" type="text" name="num" value="<?=set_value('num')?>" placeholder="Numéro de la rue" >
                                 		<?=form_error('num')?>
                                 	</div>
                                 	<div class="form-group">
                                 		<label>* Adresse</label>
                                 		<input class="form-control" type="test" name="address" value="<?=set_value('address')?>" placeholder="Adresse" >
                                 		<?=form_error('address')?>
                                 	</div>                           	
                               		<div class="form-group">
                                 		<label>* Code Postal</label>
                                 		<input class="form-control" type="text" name="po" value="<?=set_value('po')?>" placeholder="Code Postal" >
                                 		<?=form_error('po')?>
                                 	</div>
                                 		<div class="form-group">
                                 		<label>* Ville</label>
                                 		<input class="form-control" type="text" name="city" value="<?=set_value('city')?>" placeholder="Ville" >
                                 		<?=form_error('city')?>
                                 	</div>   
                                 	<div class="form-group">
                                 		<label>Pays (en option)</label>
                                 		<input class="form-control" type="text" name="country" value="<?=set_value('country')?>" placeholder="Pays" >
                                 	</div>                             	
                                 		<div class="form-group">
                                 		<label>Boite (en option)</label>
                                 		<input class="form-control" type="text" name="pobox" value="<?=set_value('pobox')?>" placeholder="Boite" >
                                 	</div>
                                 	<div class="form-group">
                                 		<label>Etage (en option)</label>
                                 		<input class="form-control" type="text" name="floor" value="<?=set_value('foor')?>" placeholder="Etage" >
                                 	</div>                                		
                                 		<div class="form-group">
                                 		<label>Superficie (en option)</label>
                                 		<div class="input-group">
                                 		<span class="input-group-addon">M&sup2;</span>
                                 		<input class="form-control" type="text" name="surface" value="0" placeholder="Superficie" >
                                 		</div>
                                 	</div>
                                 	<div class="form-group">
                                 		<label>Prix (en option)</label>
                                 		<div class="input-group">
                                 		<span class="input-group-addon"><i class="fa fa-euro"></i></span>
                                 		<input class="form-control" type="text" name="price" value="0" placeholder="Prix" >
                                 		</div>
                                 	</div>
                                 	<hr>
                                 	<div class="form-group">
                                 		<label>Description:</label>
                                 		<textarea class="form-control"  name="comment" value="" placeholder="Flash.." ><?=set_value('comment')?></textarea>
                                 	</div>
                                 <hr>
                                 <button type="submit" class="btn btn-primary btn-flat"><i class="fa fa-check"></i> ajouter</button> | <a href="<?=site_url()?>properties" class="btn btn-danger btn-flat"><i class="fa fa-times"></i> annuler</a>
                                </div><!-- /.box-body -->
                                </form>
                            </div><!-- /.box -->
                     
                    </div>

                            </div>
                           
                </section><!-- /.content -->
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->